<?php
/**
 * Created by PhpStorm.
 * User: Zhoujinda
 * Date: 2016/8/4
 * Time: 16:00
 */
namespace Mengwu\Widget;

use Mengwu\Api\MwApi;
use Mengwu\Controller\BaseStoreController;

class NavCateWidget extends BaseStoreController{
    /**
     * 获取商品分类
     */
    public function cate(){
        //查找类目
        $data = [];
        $result = mwApi(MwApi::BY_Product_giftCate,$data);
        if($result['status']){
            $this->assign('cate',$result['info']);
            $this->boye_display('Widget:nav_cate');
        }
    }
}